export const imageUrl = (fileName, type) => {
	try {
		const path = new URL(
			`/src/assets/image/${type}/${fileName}`,
			import.meta.url
		).href
		return path
	} catch (e) {
		console.error('图片加载失败:', fileName)
		return ''
	}
}
